<?phpnamespace App\Repositories\Api;use App\Models\Withdraw;class WithdrawRepository{    public function getPages($filter = [], int $pageSize = 10, int $pageNum=1, $is_sort = "")    {        $res = Withdraw::query()                ->where("uid", "=", $filter['uid'])                ->orderBy("id" ,"desc")                ->paginate($filter['limit'] ?? $pageSize, "*", null, $pageNum)                ->toArray();        $res = filterPaginateData($res);        return $res;    }}